import 'package:amway_superapp_creator_plugin/dialog/edit_phone_dialog.dart';
import 'package:amway_superapp_creator_plugin/models/create_user_info_model.dart';
import 'package:amway_superapp_creator_plugin/models/my_circle_bean.dart';
import 'package:amway_superapp_creator_plugin/models/official_data.dart';
import 'package:amway_superapp_creator_plugin/models/search_info_bean.dart';
import 'package:amway_superapp_creator_plugin/net/http_manager.dart';
import 'package:amway_superapp_creator_plugin/utils/log_util.dart';
import 'package:amway_superapp_creator_plugin/utils/sp_util.dart';
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:flutter_flavor/flutter_flavor.dart';
import 'package:uuid/uuid.dart';

import '../../api.dart';
import '../base_model.dart';
import 'package:amway_superapp_creator_plugin/models/shop_list_model.dart';

class OfficialCircleModel extends BaseModel {
  OfficialCircleModel({@required Api api}) : super(api: api);

  ShopListBean officialData;

  void getShopList(SearchInfoBean bean) {
    HttpManager().post(
        url: "apis/v1/creator/product/searchWithFilter",
        data: bean,
        tag: null,
        successCallback: (data) {
          if (data != null) {
            officialData = ShopListBean.fromJson(data);
            notifyListeners();
          }
        },
        errorCallback: (data) {});
  }
}
